<?php
namespace app\manager\model;

use think\Model;

class CarRenders extends \think\Model
{

    //多语言实现
    protected $table = 'car_renders';
    
    
    
    /**
     * 获取房车厂家信息
     * @param  [type] $getTypeArray [description]
     * @return [type]               [description]
     */
    public function getCarRenderInfo($getTypeArray)
    {
    	return self::get($getTypeArray);
    }

   

    public function getCarRendersLists(){
        return self::select();
    }

    public function createCarRender($post_carrender_info)
    {
        return $this->create($post_carrender_info);
    }

    public function updateCarRender($id, $post_carrender_info)
    {
        return $this->where('id',$id)->update($post_carrender_info);
    }

    public function delInfo($id)
    {
        $result = $this->destroy($id);
        if ($result) {
            return true;
        }
        return false;
    }


}